package com.itheima.pojo;


import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

@Data
public class Category {
    private String id;

    private Integer type;

    private String name;

    private String sort;

    @DateTimeFormat(pattern = "yyyy-MM-dd:HH:mm:ss")
    private LocalDateTime createTime;

    @JsonFormat(pattern = "yyyy-MM-dd:HH:mm:ss")
    private LocalDateTime updateTime;

    private String createUser;

    private String updateUser;
}
